package com.geek.video.enums;

/**
 * 播放来源类型枚举（最好能动态维护）
 *
 * @author Steven
 */
public enum PlayTypeEnum {

    /**
     * 播放来源类型
     */
    B(1, "bilibili.com", "B站"),

    Y(2, "youku.com", "优酷"),

    A(3, "iqiyi.com", "爱奇艺"),

    T(4, "v.qq.com", "腾讯视频"),

    M(5, "mgtv.com", "芒果TV"),

    L(6, "le.com", "乐视"),

    UNKNOWN(99, "unknown", "未知视频来源"),
    ;

    private int code;

    /**
     * 特征值
     */
    private String eigenvalue;

    /**
     * 描述
     */
    private String message;

    PlayTypeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    PlayTypeEnum(int code, String eigenvalue, String message) {
        this.code = code;
        this.eigenvalue = eigenvalue;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getEigenvalue() {
        return eigenvalue;
    }
}
